#include "board.h"
#include "rtthread.h"

static rt_uint8_t rt_led1_thread_stack[1024];


static void led1_thread_entry(void* parameter);
static struct rt_thread led1_thread;


int main(void)
{	
    rt_thread_init(&led1_thread,
									 "led1",
									 led1_thread_entry,
									 RT_NULL,
									 &rt_led1_thread_stack[0],
									 sizeof(rt_led1_thread_stack),
									 3,
									 20
						);
	  rt_thread_startup(&led1_thread);
}

static void led1_thread_entry(void* parameter)
{
	int color = 0;
	while(1)
	{
		LED_Color(color%8);
		color++;
		rt_thread_delay(1000);
	}
}

